package com.example.tree.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Accessors(chain = true)
@ApiModel(value = "PublishCritic对象", description = "文章评论数据表")
public class PublishCriticDto {

    @ApiModelProperty(value = "评论id")
    private String criticId;

    @ApiModelProperty(value = "评论内容")
    private String criticContent;

    @ApiModelProperty(value = "回复论评用户id", dataType = "123456789",hidden =true)
    private String userId;

    @ApiModelProperty(value = "回复论评用户名称", dataType = "文章发布人姓名",hidden =true)
    private String userName;

    @ApiModelProperty(value = "回复论评用户头像", dataType = "文章发布人头像",hidden =true)
    private String userImage;

    @ApiModelProperty(value = "评论人id")
    private String criticUserId;

    @ApiModelProperty(value = "评论人姓名")
    private String criticUserName;

    @ApiModelProperty(value = "评论人头像", hidden = true)
    private String criticUserAvatar;

    @ApiModelProperty("评论父级唯一编号")
    private String parentCode;

    @ApiModelProperty(value = "文章id")
    private String articleId;

    @ApiModelProperty(value = "评论时间", hidden = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date criticTime;

//    @ApiModelProperty(value = "1:删除 0未删除", hidden = true)
//    private Integer deleteCritic;
//
//    @ApiModelProperty(value = "点赞", hidden = true)
//    private Long praise;
//
//    @ApiModelProperty(value = "分享", hidden = true)
//    private Long share;

    @ApiModelProperty(value = "被评论父级id <0表示顶级>")
    private String parentId;

    @ApiModelProperty(value = "1:一级 2：二级", hidden = true)
    private Integer type;

    @ApiModelProperty(value = "身份")
    private Integer identity;
}
